/**
 * 
 */
package com.zeba.buysell;

import android.content.Intent;


/**
 * @author Zeba
 *
 */
public class BuyActivityTransitionManager {

	public static enum BuyActivityMap{ 
		SUCCESS(true),  
		FAILURE(false);  

		private final boolean success;

		BuyActivityMap(boolean success){  
			this.success = success;  
		}  
		public boolean success(){  
			return this.success;  
		} 
		
	}

	public static Intent getIntent(BuyActivityMap success,BuySellActivity caller) {

		Intent intent = null;
		switch(success){
		case SUCCESS:
			intent = new Intent(caller, BuySuccessActivity.class);
			break;
		case FAILURE:
			intent = new Intent(caller, BuyFailureActivity.class);
			break;
		default:
			intent = new Intent(caller, BuyFailureActivity.class);
			break;
		}
		
		return intent;
		
	}
	
	
}
